<?php 
	if(!isset($email)){
		$email = set_value("email");
	}
	if(!isset($nome)){
		$nome = set_value("nome");
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php echo $this->load->view('head');?>
</head>
<body onload="selecionarAba('cadastro')">
<div class="main">
  <?php echo $this->load->view('menu');?>
  <div class="content">
    <div class="content_resize">
      <div class="mainbar">
        <div class="article">
          <h2><span>Dados de usuário</span></h2>
          <?php echo validation_errors('',''); ?>
          <div class="clr"></div>
          <?php echo form_open("home/gravar");?>
          <table>
          	<tr>
          		<td>
          			<?php echo form_label("Nome","nome");?>
          		</td>
          		<td>
          			<?php echo form_input(array("name"=>"nome","id"=>"nome"),$nome)?>
          		</td>
          	</tr>
          	<tr>
          		<td>
          			<?php echo form_label("Email","email");?>
          		</td>
          		<td>
          			<?php echo form_input(array("name"=>"email","id"=>"email"),$email)?>
          		</td>
          	</tr>
          	<tr>
          		<td>
          			<?php echo form_label("Senha","senha");?>
          		</td>
          		<td>
          			<?php echo form_password(array("name"=>"senha","id"=>"senha"));?>
          		</td>
          	</tr>
          	<tr>
          		<td>
          			<?php echo form_label("Confirme a senha","rsenha");?>
          		</td>
          		<td>
          			<?php echo form_password(array("name"=>"rsenha","id"=>"rsenha"));?>
          		</td>
          	</tr>
          	<tr>
          		<td colspan="2" align="right">
          			<?php echo form_submit(array("value"=>"Cadastrar"));?>
          		</td>
          	</tr>
          </table>
          <?php echo form_close();?>
        </div>
        
      </div>
      </div>
      <div class="clr"></div>
    </div>
  </div>
  
  <?php echo $this->load->view('footer');?>
  
</body>
</html>